<?php
$arrData = $this->arrData;
?>
<form id="frmPost" name="frmPost" method="POST" enctype="multipart/form-data">
    <table class="detail_info">
        <tbody>
            <tr>
                <td colspan="2"><span <?php if(!empty ($this->error)) echo 'style ="display:block; color: red; font-size:20px"'; else echo 'style ="display:none;"';  ?>>Bạn phải nhập thông tin đầy đủ trước khi submit form</span></td>
            </tr>
            <tr>
                <td class="column_left">
                    Mã trận đấu<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="text" disabled name="txtmatchid" id="txtmatchid" size="25" tabindex="1" value="<?php echo $arrData['match_id'] ?>" />
                    <span id="txtmatchid_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    SMS Code<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="text" name="match_code" id="match_code" size="25" tabindex="2" value="<?php echo $arrData['match_code'] ?>"/>
                    <span id="match_code_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Tỉ số trận đấu
                </td>
                <td class="column_right">
                    <table>
                        <tr>
                            <td>
                                left
                            </td>
                            <td>
                                <select name="goal_team1" id="goal_team1" style="margin-left: 10px" tabindex="3">
                                    <?php for($i =0; $i < 10; $i++): ?>
                                        <option value="<?php echo $i ?>" <?php if($arrData['goal_team1'] == $i) echo 'selected' ?>><?php echo $i ?></option>
                                    <?php endfor; ?>
                                </select>
                                <span id="goal_team1_err" style="display: none; color: red;"></span>
                            </td>
                            <td style="width: 50px; text-align: right">
                                right
                            </td>
                            <td>
                                <select name="goal_team2" id="goal_team2" style="margin-left: 10px" tabindex="4">
                                    <?php for($i =0; $i < 10; $i++): ?>
                                        <option value="<?php echo $i ?>" <?php if($arrData['goal_team2'] == $i) echo 'selected' ?>><?php echo $i ?></option>
                                    <?php endfor; ?>
                                </select>
                                <span id="goal_team2_err" style="display: none; color: red;"></span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Đội hình dự kiến trận đấu<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="file" name="squad_content" id="squad_content" size="25" tabindex="5"/>
                    <img src="<?php echo UPLOAD_URL_CLUB.$arrData['match_squad'];?>" align="absmiddle" width="200" height="150" />
                    <input type="hidden" name="image" id="image" value="<?php echo $arrData['match_squad']; ?>">
                    <span id="squad_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Ảnh đội 1(left)<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="file" name="image_team1" id="image_team1" size="25" tabindex="6"/>
                    <img src="<?php echo UPLOAD_URL_CLUB.$arrData['image_team1'];?>" align="absmiddle" width="200" height="150" />
                    <input type="hidden" name="image1" id="image" value="<?php echo $arrData['image_team1']; ?>">
                    <span id="image_team1_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                   Ảnh đội 2(left)<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="file" name="image_team2" id="image_team2" size="25" tabindex="7"/>
                    <img src="<?php echo UPLOAD_URL_CLUB.$arrData['image_team2'];?>" align="absmiddle" width="200" height="150" />
                    <input type="hidden" name="image2" id="image2" value="<?php echo $arrData['image_team2']; ?>">
                    <span id="image_team2_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                  Background Image<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="file" name="image_background" id="image_background" size="25" tabindex="8"/>
                    <img src="<?php echo UPLOAD_URL_CLUB.$arrData['image_background'];?>" align="absmiddle" width="200" height="150" />
                    <input type="hidden" name="image3" id="image3" size="25" value="<?php echo $arrData['image_background']; ?>"/>
                    <span id="image_background_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Chọn mã màu<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <table>
                        <tr>
                            <td style="width: 70px;">
                                Màu left
                            </td>
                            <td>
                                <input type="text" name="color_team1" id="color_team1" size="25" tabindex="9" value="<?php echo $arrData['color_team1'] ?>"/>
                                <span id="color_team1_err" style="display: none; color: red;"></span>
                            </td>
                            <td style="width: 70px; text-align: center">
                               Màu right
                            </td>
                            <td>
                                <input type="text" name="color_team2" id="color_team2" size="25" tabindex="10" value="<?php echo $arrData['color_team2'] ?>"/>
                                <span id="color_team2_err" style="display: none; color: red;"></span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Link facebook<span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <input type="text" name="facebook_link" id="facebook_link" size="94" tabindex="11" value="<?php echo $arrData['facebook_link'] ?>"/>
                    <span id="facebook_link_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Keyword website<span style="color: red;">*</span>   
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="70" rows="2" name="keyword" id="keyword" tabindex="12"><?php echo $arrData['keyword']; ?></textarea>
                    <span id="keyword_err" style="display: none; color: red; float: left"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Description website<span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="70" rows="2" name="description" id="description" tabindex="13"><?php echo $arrData['description']; ?></textarea>
                    <span id="description_err" style="display: none; color: red; float: left"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Title website <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="70" rows="1" name="title" id="title" tabindex="14"><?php echo $arrData['title']; ?></textarea>
                    <span id="title_err" style="display: none; color: red; float: left"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Thông tin trận đấu <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_info_content" id="ck_info_content" tabindex="15"><?php echo $arrData['match_info'];  ?></textarea>
                    <span id="ck_info_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Lịch sử đối đầu <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_history_content" id="ck_history_content" tabindex="16"><?php echo $arrData['match_history'];  ?></textarea>
                    <span id="ck_content_history_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Phong độ gần đây(left) <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_left_performance_content" id="ck_left_performance_content" tabindex="17"><?php echo $arrData['left_performance'];  ?></textarea>
                    <span id="ck_left_performance_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Phong độ gần đây(right) <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_right_performance_content" id="ck_right_performance_content" tabindex="18"><?php echo $arrData['right_performance'];  ?></textarea>
                    <span id="ck_right_performance_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Cầu thủ tiêu biểu <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_player_star_content" id="ck_player_star_content" tabindex="19"><?php echo $arrData['player_star'];  ?></textarea>
                    <span id="ck_content_player_star_err" style="display: none; color: red;"></span>
                </td>
            </tr>
             <tr>
                <td class="column_left">
                   Tin đội bóng(left) <span style="color: red;">*</span>   
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_info_team1_content" id="ck_info_team1_content" tabindex="29"><?php echo $arrData['info_team1'];  ?></textarea>
                    <span id="ck_info_team1_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Tin đội bóng(right) <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_info_team2_content" id="ck_info_team2_content" tabindex="21"><?php echo $arrData['info_team2'];  ?></textarea>
                    <span id="ck_info_team2_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                   Đội hình dự kiến(left)   <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_left_squad_content" id="ck_left_squad_content" tabindex="22"><?php echo $arrData['left_squad'];  ?></textarea>
                    <span id="ck_left_squad_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Đội hình dự kiến(right)  <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_right_squad_content" id="ck_right_squad_content" tabindex="23"><?php echo $arrData['right_squad'];  ?></textarea>
                    <span id="ck_right_squad_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Chấn thương và treo giò(left) <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_left_suspend_content" id="ck_left_suspend_content" tabindex="24"><?php echo $arrData['left_suspend'];  ?></textarea>
                    <span id="ck_left_suspend_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Chấn thương và treo giò(right) <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <textarea cols="25" rows="5" name="ck_right_suspend_content" id="ck_right_suspend_content" tabindex="25"><?php echo $arrData['right_suspend'];  ?></textarea>
                    <span id="ck_right_suspend_content_err" style="display: none; color: red;"></span>
                </td>
            </tr>
            
        </tbody>
    </table>
    <div class="btn_back">
        <input type="submit" name="submit" value="Cập nhật" tabindex="26"/>
        <input type="button" name="cancel" value="Bỏ qua" onclick="window.location='<?php echo BASE_URL_CLUB;?>/subpage';" tabindex="27"/>
    </div>
    <input type="hidden" name="txtid" id="txtid" value="<?php echo $arrData['match_id'];?>" />
</form>
<script type="text/javascript"> 
var isPostOnAdminSubpage    = 1;
var thethao_subpage_url     = "<?php echo BASE_URL;?>";
var thethao_subpage_css_url = "<?php echo CSS_URL_CLUB;?>";
var contentCssSubpage       = "<?php echo CSS_URL_CLUB;?>/subpage.css";
</script>

